/*
 * @Copy.Right (c)2025.好买气电子商务有限公司
 * @Department 技术研发部
 */
package com.xq.tmall.dao;

import com.xq.tmall.entity.StockFetchError;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 抓取异常日志数据访问对象
 *
 * @TableName stock_fetch_error
 * @author 74449
 * @Creator Sieger.MybatisGenerator
 */
public interface StockFetchErrorDao {
    /**
     * selectByPrimaryKey for stock_fetch_error
     * @param code
     * @return StockFetchError
     * @Creator Sieger.MybatisGenerator 【严禁自行删除、修改操作】
     */
    StockFetchError selectByPrimaryKey(String code);

    /**
     * insertSelective for stock_fetch_error
     * @param record
     * @return int
     * @Creator Sieger.MybatisGenerator 【严禁自行删除、修改操作】
     */
    int insertSelective(StockFetchError record);

    /**
     * updateByPrimaryKeySelective for stock_fetch_error
     * @param record
     * @return int
     * @Creator Sieger.MybatisGenerator 【严禁自行删除、修改操作】
     */
    int updateByPrimaryKeySelective(StockFetchError record);

    /**
     * deleteByPrimaryKey for stock_fetch_error
     * @param code
     * @return int
     * @Creator Sieger.MybatisGenerator 【严禁自行删除、修改操作】
     */
    int deleteByPrimaryKey(String code);


    int batchUpdate(@Param("list") List<StockFetchError> fetchErrorList);


    List<StockFetchError> findList(@Param("fetchType") String fetchType);

    int updateByStockCode(@Param("codeList") List<String> codeList);
}